package datatypes.tv;

import java.util.ArrayList;
import java.util.List;

public class tvGuestRoles {
	List<tvGuestRole> tv_guest_roles;

	public tvGuestRoles() {
		this.tv_guest_roles = new ArrayList<tvGuestRole>();
	}
	
	public tvGuestRoles(tvGuestRole tv_guest_role) {
		this.tv_guest_roles = new ArrayList<tvGuestRole>();
		this.tv_guest_roles.add(tv_guest_role);
	}
	
	public tvGuestRoles(List<tvGuestRole> tv_guest_roles) {
		this.tv_guest_roles = new ArrayList<tvGuestRole>();
		this.tv_guest_roles.addAll(tv_guest_roles);
	}

	public void addGuestRole(tvGuestRole tv_guest_roles) {
		this.tv_guest_roles.add(tv_guest_roles);
	}
 
	
	public List<tvGuestRole> gettvGuestRoles(){
		return this.tv_guest_roles;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		int GRIndex = 1;
		for(tvGuestRole tv_guest_role : tv_guest_roles){
			sb.append("tv_guest_role <" + GRIndex++ + ">: \n");
			sb.append(tv_guest_role.toString() + "\n");
		}

		return sb.toString();
	}
}
